package org.chen.org.doamin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.chen.bas.domain.BasDomain;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BasDomain {
    private Long id;
    private String name;
    private String intro;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date updateTime;
    private Employee manager;
    private Department parent;
    private String path;
    private Integer state;
    private List<Department> children;
}
